package interfaz;

import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.SystemColor;

public class PanelIdentificacion extends JPanel {
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Create the panel.
	 */
	public PanelIdentificacion() {
		setBackground(SystemColor.inactiveCaptionText);
		setBorder(new TitledBorder(null, "Identificarse", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		setLayout(null);
		
		textField = new JTextField();
		textField.setBounds(82, 11, 86, 20);
		add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(82, 38, 86, 20);
		add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblUsuario = new JLabel("Usuario");
		lblUsuario.setBounds(10, 14, 46, 14);
		add(lblUsuario);
		
		JLabel lblContrasea = new JLabel("Contrase\u00F1a");
		lblContrasea.setBounds(10, 41, 75, 14);
		add(lblContrasea);
		
		JButton btnEntrar = new JButton("ENTRAR");
		btnEntrar.setBounds(178, 10, 89, 23);
		add(btnEntrar);
		
		final JLabel recordarPass = new JLabel("Recordar Contrase\u00F1a");
		recordarPass.setForeground(Color.BLUE);
		recordarPass.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent arg0) {
				recordarPass.setForeground(Color.orange);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				recordarPass.setForeground(Color.blue);
			}
		});
		recordarPass.setFont(new Font("Tahoma", Font.PLAIN, 9));
		recordarPass.setBounds(178, 41, 86, 14);
		add(recordarPass);

	}
}
